#include<iostream>
#include<algorithm>
using namespace std;

#include"SimpleString.h"

int main()
{
	SimpleString str = "123";
	str = "123";
	str.output();
	SimpleString str2("456");
	str2.output();
	SimpleString str3;
	str3 = "789";
	str3.output();
	

	str = str + str2;
	cout << str << endl;

	str2 = str;
	str2.output();

	str.input();
	(str + str2 + str3).output();
	cout << (str + str2 + str3).length() << endl;

	cin >> str;
	cout << (str + str2 + str3) << endl;
	cout << (str + str2 + str3).length() << endl;

	return 0;
}